/*
* @Description: 积分账户科目
* @Date: 2022-12-09 20:38:17
* @Author: lizhiqiang
*/
import { IntegralAccountTitle, TitleMerchantConfig } from "@/types/api"
import { get,post } from "@/utils/request"
/**
 * 保存积分账户科目
 * @param params 
 * @returns 
 */
export const S=(params:IntegralAccountTitle)=>{
    return post('/integral-service/base/accounttitle/save',params)
}
/**
 * 编辑积分账户科目
 * @param params 
 * @returns 
 */
export const U = (params:IntegralAccountTitle)=>{
    return post('/integral-service/base/accounttitle/update',params)
}
/**
 * 获取积分账户科目详情
 * @param pkAccount 
 * @returns 
 */
export const G = (pkAccount:string)=>{
    return get(`/integral-service/base/accounttitle/info/${pkAccount}`)
}
/**
 * 获取积分账户科目列表
 * @param params 
 * @returns 
 */
export const GL =(params:IntegralAccountTitle)=>{
    return post('/integral-service/base/accounttitle/list',params)
}
/**
 * 删除积分账户科目
 * @param params 
 * @returns 
 */
export const D = (params:Array<string>)=>{
    return post('/integral-service/base/accounttitle/deleteBatch',params)
}
/**
 * 获取积分科目列表枚举
 * @returns 
 */
export const GO = (params: any)=>{
    return post("/integral-service/base/accounttitle/list", params)
}
/**
 * 获取科目父类
 * @returns 
 */
export const GOP =()=>{
    return get("/integral-service/base/accounttitle/getparent")
}
/**
 * 获取科目商家配置
 * @returns 
 */
export const getTitleMerchantConfig = (params: any) => {
    return get("/integral-service/base/accounttitle/getTitleMerchantConfig", params)
}
/**
 * 更新科目商家配置
 * @returns 
 */
export const updateTitleMerchantConfig = (params: TitleMerchantConfig) => {
    return post("/integral-service/base/accounttitle/updateTitleMerchantConfig", params)
}